package day02;

/**
 * @author wang hao
 * @date 2023-02-13 20:27
 */
public class CreateTree {

    public static Node createTree(){
        Node a = new Node("a");
        Node b = new Node("b");
        Node c = new Node("c");
        Node d = new Node("d");
        Node e = new Node("e");
        Node f = new Node("f");
        Node g = new Node("g");
        Node t = new Node("t");
        Node k = new Node("k");
        Node s = new Node("s");
        a.setLeft(b);
        a.setRight(c);
        b.setLeft(d);
        b.setRight(e);
        e.setLeft(t);
        c.setLeft(f);
        c.setRight(g);
        f.setLeft(k);
        f.setRight(s);
        return a;
    }
}
